<div th:fragment="frag(list)">
	<th:block th:with="pageData=${list.listData},meta=${list.app.object.data.get('meta')}">
		<div class="box-body">
			<table class="table table-bordered">
				<tr>
					<th:block th:if="${meta}">
						<th:block th:each="vp : ${list.properties}">
							<th th:unless="${vp.type.equals('hidden')}" th:width="${vp.width}">
								<div class="btn-group">
									<button type="button" class="btn bg-black btn-sm dropdown-toggle" data-toggle="dropdown">
										<span th:text="${vp.name}"></span>
										<span class="caret"></span>
										<span class="sr-only"></span>
									</button>
									<th:block th:include="meta/biz/list-dropdown :: frag(${list}, ${vp})"></th:block>
								</div>
							</th>
						</th:block>
					</th:block>
					<th:block th:unless="${meta}">
						<th:block th:each="vp : ${list.properties}">
							<th th:unless="${vp.type.equals('hidden')}" th:text="${vp.name}" th:width="${vp.width}"></th>
						</th:block>
					</th:block>
					<th:block th:if="${list.app.selector != true}" >
						<th th:width="${list.operationColumnWidth}">
							操作
						</th>
					</th:block>
				</tr>
				<th:block th:each="row : ${pageData.rows}">
					<tr th:data-app-row="${list.getListRowJson(rowStat.index)}" th:data-app-pk="${list.keyProperties.get(0).id}"
						th:data-app-namepropertyid="${list.nameProperty.id}">
						<th:block th:each="vp : ${list.properties}" th:with="vpValue = ${list.getListValue(rowStat.index, vp.id)}">
							<td th:if="${vp.type.equals('textfield')}" th:text="${vpValue}"
								th:data-app-listproperty="${vp.id}" th:data-app-listajax="${vp.ajax}"></td>
							<td th:if="${vp.type.equals('dictionary')}" th:text="${@MDictionaryServiceImpl.getDictionaryName(vp.dictionaryType, vpValue)}"
								th:data-app-listproperty="${vp.id}" th:data-app-listajax="${vp.ajax}"></td>
							<td th:if="${vp.type.equals('file')}" th:data-app-listproperty="${vp.id}" th:data-app-listajax="${vp.ajax}">
								<a th:if="${vpValue != null}" th:href="@{${'meta/file/'+ vpValue}}" target="_blank" class="badge bg-green">点击下载</a>
								<span th:if="${vpValue == null}" class="badge bg-yellow">暂无文件</span>
							</td>
							<td th:if="${vp.type.equals('html')}" th:utext="${vpValue}"
								th:data-app-listproperty="${vp.id}" th:data-app-listajax="${vp.ajax}"></td>
						</th:block>
						<th:block th:if="${list.app.selector != true}" >
							<td>
								<th:block th:each="btn : ${list.buttons}" th:if="${btn.data.get('selectType') == 'single' and btn.isVisible(row)}" >
									<th:block th:unless="${meta}">
										<th:block th:include="${btn.url} :: frag(${btn})"></th:block>
									</th:block>
									<div class="btn-group" th:if="${meta}">
										<th:block th:include="${btn.url} :: frag(${btn})"></th:block>
										<button type="button" class="btn bg-black btn-sm dropdown-toggle" data-toggle="dropdown" style="height:28px">
											<span class="caret"></span>
											<span class="sr-only"></span>
										</button>
										<th:block th:include="meta/biz/button-dropdown :: frag(${list}, ${btn})"></th:block>
									</div>
								</th:block>
							</td>
						</th:block>
					</tr>
				</th:block>
			</table>
		</div>
		<!-- /.box-body -->
		<th:block th:include="meta/list-footer :: frag(${list})"></th:block>
	</th:block>
</div>
